
<script type="text/javascript">
    function selectuserajax() {
        // var id = selectObj.value;
        var e = document.getElementById("user_list");
        var strUser = e.value;

        var dataString = "/" + strUser + '/' + $("#txtDate_showorder").datepicker({dateFormat: 'd-m-Y'}).val();

        $.ajax({
            url: "<?php echo base_url() . 'welcome/check_result_by_month'; ?>" + dataString,
            type: 'POST',
            data: dataString,
            success: function(output_string) {
                $(".resultajax").html(output_string);
            }
        });
    }
</script>
<div class="row-fluid">		
    <div class="box span12">
        <div class="box-header well" data-original-title>
            <h2> Hôm nay / <?php echo date("d-m-Y"); ?></h2>

        </div>
        <div class="box-content">
            <script type="text/javascript">
                $(function() {
                    $('#txtDate_showorder').datepicker({dateFormat: 'dd-mm-yy'});
                });
            </script>
            <input id="txtDate_showorder" type="text"   >
            <select name="user_list" id="user_list" onchange="selectuserajax();">     
                <option value="0" selected="selected">------------</option>
                <?php foreach ($userlist as $user): ?>
                    <option value="<?php echo $user->id ?>"> <?php echo $user->username; ?> </option>
                <?php endforeach; ?>
            </select>
            <div id="load_tweet">

                <span class="resultajax"> 

                </span>    
            </div>
        </div>
    </div><!--/span-->

</div><!--/row-->